package com.zq.behavior.mediator;

public class Client {
    public static void main(String[] args) {
        ChatRoom<Person> chatRoom = new ConcreteChatRoom();
        Person person1 = new Person(chatRoom);
        Person person2 = new Person(chatRoom);

        person1.send(person2.getUserId(), "hello");
        person2.send(person1.getUserId(), "world");
    }
}
